package com.wxx.design.builder;

/**
 * @author: Jetwang
 * @date: 2022/4/10 14:26
 * @description: Test
 * @version: 1.0
 */
public class Test {
    public static void main(String[] args) {
        CourseBuilder courseBuilder = new CourseActualBuilder();
        Coach coach = new Coach();
        coach.setCourseBuilder(courseBuilder);
        Course course = coach.makeCourse("Java设计模式", "Java设计模式PPT"
                , "Java设计模式视频", "Java设计模式手记", "Java设计模式问答");
        System.out.println(course);
    }

    /*
    StringBuilder,  StringBuffer, SqlSessionBuilder
    建造者模式 --- 建造者包装建造者 --- 链式调用
    @Override
    public StringBuilder append(String str) {
        super.append(str);
        return this;
    }
     */
}
